import { request } from "@/utils/request002";
/**
 * 课程管理
 */
// 分页
export const queryAllCourseInfo = (params: any) => {
  return request({
    url: '/teaching/courseInfo/page',
    method: 'GET',
    params
  })
}

// 新增
export const insertCourse = (data: any) => {
  return request({
    url: '/teaching/courseInfo/add',
    method: 'POST',
    data
  })
}

// 编辑
export const updateCourse = (data: any) => {
  return request({
    url: '/teaching/courseInfo/edit',
    method: 'POST',
    data
  })
}

// 删除
export const deleteCourse = (data: any) => {
  return request({
    url: '/teaching/courseInfo/delete',
    method: 'POST',
    data
  })
}

